package com.zb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author WEN
 * @Date 2023/12/29 0029
 **/
@Data
@ApiModel("字段值选项")
public class FieldValOptionVo {
    @ApiModelProperty(value = "字段值选项ID")
    private Long id;

    @Length(max = 500, message = "内容长度限制 500 个字符以内")
    @ApiModelProperty(value = "内容")
    private String optValue;

    public FieldValOptionVo() {
    }

    public FieldValOptionVo(Long id, String optValue) {
        this.id = id;
        this.optValue = optValue;
    }
}
